<?php
// 后台用户模块
class OrderInfoAction extends CommonAction {

	function _filter(&$map) {
		$_REQUEST['_order'] = 'insert_time';
		$_REQUEST['_sort'] = 'desc';
	}

	protected function _search($name = '') {
		//生成查询条件
		$name  = $this->getActionName();
		$model = D($name);
		$map   = array();
		foreach ($model->getDbFields() as $key => $val) {
			if (isset($_REQUEST[$val]) && $_REQUEST[$val] != '') {
				$map[$val] = $_REQUEST[$val];
			}
		}
		return $map;
	}
	
}
?>